﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using fmtx.Framework.Model;

namespace com.fmtx.Model
{
    [Serializable]
    public class Article:BaseEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required]
        [Display(Name = "标题")]
        public string Title { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>
        public string Subtitle { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Required]
        [Display(Name = "内容")]
        public string Content { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 封面
        /// </summary>
        public string FrontCover{get;set;}
        /// <summary>
        /// 封面比例
        /// </summary>
        public double Scale { get; set; }
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime InTime { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 分类id
        /// </summary>
        public int TypeId { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string KeyWord { get; set; }
        /// <summary>
        /// 拓展字段
        /// </summary>
        public string Exp { get; set; }
        /// <summary>
        /// 拓展id
        /// </summary>
        public int ExpId { get; set; }
        /// <summary>
        /// 地点标签
        /// </summary>
        public string PlaceTag { get; set; }
        /// <summary>
        /// 地址名称
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 地址路径
        /// </summary>
        public string AddressUrl { get; set; }
        /// <summary>
        /// 匹配的地点表
        /// </summary>
        public List<AreaKey> AreaKeys{get;set;}
        /// <summary>
        /// 评论数量
        /// </summary>
        public int CommentCount { get; set; }
        /// <summary>
        /// 赞美
        /// </summary>
        public int PraiseCount { get; set; }
        /// <summary>
        /// 展示次数
        /// </summary>
        public int ShowCount { get; set; }
        /// <summary>
        /// 倒彩
        /// </summary>
        public int HootingCount { get; set; }
        /// <summary>
        /// 是否公开
        /// </summary>
        public bool IsView { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public Approved Statu { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; }
    }
}
